home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_shs_dlog_poetics.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  96 lines

  1. # Jones 3D Cog Script
  2. #
  3. # shs_Dlog_poetics.cog   Say the line, Indy.  
  4. #
  5. # [JWC]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ========================================================================================
  10.  
  11. symbols
  12.  
  13. message     startup
  14. message     activated
  15.                                                           
  16. sound        in_poetics=Ss06j04.wav        local
  17. sound        in_notsure=Inxj061.wav        local # Not sure good idea
  18. sound        in_dangerous=Inxj056.wav    local # That looks dangerous
  19. sound        in_uhoh=Inxj011.wav            local # Uh-oh!
  20. sound        in_ouch=inxj017f.wav        local # Ouch!
  21.  
  22. thing         trigger               
  23. thing        player            local
  24. thing         interpcam
  25.  
  26. int            filter=0        local
  27. int            spoken=0        local
  28.  
  29. end
  30.  
  31. # ========================================================================================
  32.  
  33. code
  34.  
  35. startup:
  36.     
  37.           
  38.     player = GetLocalPlayerThing();
  39.     return;
  40.  
  41. activated:
  42.     
  43.     if ((GetSenderRef() == trigger) && (filter == 0)) 
  44.     {
  45.         filter=1;
  46.         print("activated");
  47.         MakeMeStop();
  48.         StartCutscene(1);
  49.           
  50.         # Camera stuff
  51.         SetExtCamOffsetToThing(interpCam);
  52.         sleep(.2);
  53.         PlayMode(player, 60, 0); # push button anim
  54.         sleep(.3);
  55.             
  56.         if (spoken == 0)
  57.         {
  58.             spoken=1;
  59.             # "Aristotle's..."
  60.             PlayVoice(player, in_poetics, 1.0, 1);
  61.         }
  62.         else if (spoken == 1)
  63.         {
  64.             spoken=2;
  65.             PlayVoice(player, in_notsure, 1.0, 1);
  66.         }
  67.         else if (spoken == 2)
  68.         {
  69.             spoken=3;
  70.             PlayVoice(player, in_dangerous, 1.0, 1);
  71.         }
  72.         else if (spoken == 3)
  73.         {
  74.             spoken=4;
  75.             PlayVoice(player, in_uhoh, 1.0, 1);
  76.             
  77.         }
  78.  
  79.         RestoreExtCam();
  80.         ClearActorFlags(player, 0x200000); # player in control
  81.         EndCutscene();
  82.         if (spoken == 4)
  83.         {
  84.             PlayVoice(player, in_ouch, 1.0, 1);
  85.             DamageThing(player, 31, 0x100, player);
  86.         }
  87.         filter=0;
  88.     }
  89.     
  90. return;
  91.      
  92.  
  93. end
  94.  
  95.  
  96.